// 库存管理接口
import request from "@/common/request.js";
const api = {
  client_source: "/client_source/",
};

const clSourceApi = {
  get_client_source(params) {
    return request({
      url: api.client_source,
      method: "get",
      params,
    });
  },

  client_source_detail(id) {
    return request({
      url: api.client_source + id,
      method: "get",
    });
  },

  post_client_source(data) {
    return request({
      url: api.client_source,
      method: "post",
      data,
    });
  },

  patch_client_source(data, id) {
    return request({
      url: api.client_source + id + "/",
      method: "patch",
      data,
    });
  },

  delete_client_source(id) {
    return request({
      url: api.client_source + id + "/",
      method: "delete",
    });
  },
};

export default clSourceApi